-- GENERATED SPELL FOR [Lava Reaver] --


function spell0_12100(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(19642,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12100', 596, 1)
end

function spell1_12100(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(19644,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12100', 695, 1)
end

function Sorts_12100(pUnit, Event)
local choix_sorts_12100 = math.random(0, 1)
if choix_sorts_12100 == 0 then
pUnit:RegisterEvent('spell0_12100', 1, 1)
end
if choix_sorts_12100 == 1 then
pUnit:RegisterEvent('spell1_12100', 1, 1)
end
end

function mob12100_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12100', math.random(1500, 3000), 1)
end

function mob12100_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12100_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12100_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12100, 1, 'mob12100_Action')
RegisterUnitEvent(12100, 2, 'mob12100_Leave')
RegisterUnitEvent(12100, 3, 'mob12100_Kill')
RegisterUnitEvent(12100, 4, 'mob12100_Die')
